import { ApiPath } from '../const';
import { get, post } from '../request';

const Base = '/dict';

export const getDictList = (params = {}) => {
  return get(Base + ApiPath.LIST, params);
};

export const getDictListBy = (type = '') => {
  return get(Base + ApiPath.LIST + `/${type}`);
};

export const addDict = (data = {}) => {
  return post(Base + ApiPath.INSERT, data);
};
